package com.example.service;

import com.example.service.impl.CustomerFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name="eshop-customer-server",fallback = CustomerFallBack.class)
public interface CustomerClient {
    @GetMapping("customer/{custId}")
    public Map getCustomerById(@PathVariable("custId") Integer custId);
}
